using System.Collections.Generic;

namespace Ganweisoft.IoTCenter.Module.MediaPlatform.Models
{
    public class OnvifDeviceListResponseModel
    {
        /// <summary>
        /// 品牌
        /// </summary>
        public string Brand { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// ip地址
        /// </summary>
        public string Ip { get; set; }
        /// <summary>
        /// 是否可勾选
        /// </summary>
        public bool Disable { get; set; }
    }

    /// <summary>
    /// discovered onvif device model
    /// </summary>
    public record OnvifDeviceDiscoveryRecord(
        IEnumerable<string> XAddresses,
        string Model,
        string Mfr,
        string Address)
    {
        public IEnumerable<string> XAddresses { get; init; } = XAddresses;

        public string Model { get; init; } = Model;

        public string Mfr { get; init; } = Mfr;

        public string Address { get; init; } = Address;
    }
}
